#pragma once

#include "Vector.h"

namespace Core
{
	class RectangleD
	{
	public:
		RectangleD(const Vector2D& lowerLeft = Vector2D(0.0, 0.0), const Vector2D& upperRight=Vector2D(0.0, 0.0))
		{
			_lowerLeft = lowerLeft;
			_upperRight = upperRight;
		}

		Vector2D GetLowerLeft() const { return _lowerLeft; }
		Vector2D GetUpperRight() const { return _upperRight; }

		bool operator==(const RectangleD& other)
		{
			if (_lowerLeft == other.GetLowerLeft() &&
				_upperRight == other.GetUpperRight())
			{
				return true;
			}
			return false;
		}

		bool operator!=(const RectangleD& other)
		{
			if (_lowerLeft == other.GetLowerLeft() &&
				_upperRight == other.GetUpperRight())
			{
				return false;
			}
			return true;
		}

	private:
		Vector2D _lowerLeft;
		Vector2D _upperRight;
	};
}